import axios from 'axios';

/**
 * @description 获取园区综合运营总览核心指标
 * @returns {Promise<axios.AxiosResponse<any>>}
 */
export function getOverviewStats() {
    return axios.get('/api/analytics/overview/');
}

/**
 * @description 获取房源状态分布数据
 * @returns {Promise<axios.AxiosResponse<any>>}
 */
export function getUnitStatusDistribution() {
    return axios.get('/api/analytics/unit-status-distribution/');
}

/**
 * @description 获取近12个月租赁合同增长趋势
 * @returns {Promise<axios.AxiosResponse<any>>}
 */
export function getContractGrowthTrend() {
    return axios.get('/api/analytics/contract-growth-trend/');
}

/**
 * @description 获取入驻企业类型分布数据
 * @returns {Promise<axios.AxiosResponse<any>>}
 */
export function getCompanyTypeDistribution() {
    return axios.get('/api/analytics/company-type-distribution/');
}

/**
 * @description 获取报修热点分析（按设备类型）
 * @returns {Promise<axios.AxiosResponse<any>>}
 */
export function getRepairHotspots() {
    return axios.get('/api/analytics/repair-hotspots/');
}

/**
 * @description 获取园区楼宇类型分布数据
 * @returns {Promise<axios.AxiosResponse<any>>}
 */
export function getBuildingStatus() {
    return axios.get('/api/analytics/building-status/');
}

/**
 * @description 获取近12个月招商增长趋势
 * @returns {Promise<axios.AxiosResponse<any>>}
 */
export function getInvestmentTrend() {
    return axios.get('/api/analytics/investment-trend/');
}

/**
 * @description 获取最新的园区通知公告
 * @returns {Promise<axios.AxiosResponse<any>>}
 */
export function getNotifications() {
    return axios.get('/api/analytics/notifications/');
}

/**
 * @description 获取建成楼宇租售情况
 * @returns {Promise<axios.AxiosResponse<any>>}
 */
export function getAssetSalesLeasing() {
    return axios.get('/api/analytics/asset-sales-leasing/');
}
